package cn.com.cifi.mars.service.impl;

import cn.com.cifi.mars.entity.SignPlanVersionDetail;
import cn.com.cifi.mars.entity.SignPlanVersionSupplyDetail;
import cn.com.cifi.mars.mapper.mars.SignPlanVersionSupplyDetailMapper;
import cn.com.cifi.mars.service.SignPlanVersionSupplyDetailService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 签约计划供货明细表 服务实现类
 * </p>
 *
 * @author yyd
 * @since 2019-11-08
 */
@Service
public class SignPlanVersionSupplyDetailServiceImpl extends ServiceImpl<SignPlanVersionSupplyDetailMapper, SignPlanVersionSupplyDetail> implements SignPlanVersionSupplyDetailService {


    @Override
    public List<SignPlanVersionSupplyDetail> selectByVersionId(String versionId, int isDel) {
        QueryWrapper<SignPlanVersionSupplyDetail> queryWrapper = new QueryWrapper();
        queryWrapper.eq("version_id",versionId).eq("is_delete",isDel);

        return baseMapper.selectList(queryWrapper);
    }
}
